var mongoose = require('mongoose')
var Schema = mongoose.Schema
var PartySchemaConfig = {
  versionKey: false
}

var PartySchema = new Schema({
  user: {type: Schema.Types.ObjectId, ref: 'User'},
  team: {type: Schema.Types.ObjectId, ref: 'Team'},
  stage: Number,
  resource: String,
  pass: {type: Boolean, default: false},
  comment: String
}, PartySchemaConfig)

exports = module.exports = PartySchema
